package com.zjff.show.zjffshow.service;

import com.zjff.show.zjffshow.entity.ExpressDao;
import com.zjff.show.zjffshow.impl.ExpressImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ExpressService {
    @Autowired(required = false)
    ExpressImpl expressimpl;

    // 获取快递状态
    public ExpressDao getExpress(String consignee){//获取用户数量
        return expressimpl.getExpress(consignee);
    }

    public List<ExpressDao> getExpressList(int id,int Start,int Page,String consigness){//获取列表
        return expressimpl.getExpressList(id,Start,Page,consigness);
    }

    public int getExpressCount(){//获取用户数量
        return expressimpl.getExpressCount();
    }

    public int upExpress(ExpressDao expressDao){//更新用户
        return expressimpl.upExpress(expressDao);
    }

    public List<ExpressDao> getAddExpressList(int id,int Start,int Page,String consignor){//获取列表
        return expressimpl.getAddExpressList(id,Start,Page,consignor);
    }

    public int getAddExpressCount(){//获取用户数量
        return expressimpl.getExpressCount();
    }

    public int addExpress(ExpressDao expressDao){
        return expressimpl.addExpress(expressDao);
    }

}

